package com.mzpai.product.service;

import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.mzpai.product.model.StoreProduct;
import com.mzpai.product.model.StoreProductSupplier;
import com.mzpai.product.vo.StoreProductSupplierDto;
import com.mzpai.service.BaseService;

public interface StoreProductSupplierService extends BaseService<StoreProductSupplier>{

	StoreProductSupplier queryByProductCode(String productCode);
	
	/**
	 * 根据商品主键查询基础商品
	 * @param map
	 * @return
	 */
	StoreProductSupplier queryByPrimaryId(Integer productId);
	
	
	/**
	 * 复制基础商品库到店铺
	 * @param copyStoreProductSupplierReqVo
	 */
	void saveStoreProductCopyProductSupplier(StoreProductSupplier storeProductSupplier,Integer storeId);

	/**
	 * 同步数据
	 * 将门店的商品同步到主商品库中。
	 * @param productId
	 */
	void addProductInfo(StoreProduct product);
	
	
	//测试用
	List<StoreProductSupplier> getListNewInit(Map<String,Object> map);
	
	/**
	 * 清洗数据用
	 * @param productId
	 */
	List<StoreProductSupplier> getListProductCodeIsNull();
	
	/**
	 * 统计总数
	 * @param productId
	 */
	Integer countTotal(Map<String,Object> map);
	
	PageInfo<StoreProductSupplierDto> getProcuctAndBrandList(Map<String,Object> map, Integer pageNum, Integer pageSize);
}
